package com.quxiu.system.constant;

import lombok.Getter;

/**
 * 系统字段
 */
@Getter
public enum EntitySysField {
    ID("id", "ID", FieldType.string),
    DEPT_ID("deptId", "部门id", FieldType.number),
    CREATE_TIME("createTime", "创建时间", FieldType.datetime),
    CREATE_BY("createBy", "创建人", FieldType.number),
    UPDATE_TIME("updateTime", "更新时间", FieldType.datetime),
    UPDATE_BY("updateBy", "更新人", FieldType.number),
    ;

    /**
     * 字段名称
     */
    private final String fieldName;
    /**
     *
     */
    private final String fieldTitle;
    /**
     * 字段类型
     */
    private final FieldType fieldType;

    EntitySysField(String fieldName, String fieldTitle, FieldType fieldType) {
        this.fieldName = fieldName;
        this.fieldTitle = fieldTitle;
        this.fieldType = fieldType;
    }

}
